package com.example.demo.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.jian.java.bean.User;
import com.jian.java.inter.UserService;
import org.springframework.stereotype.Component;

/**
 * @author Jiange
 * @create 2021-05-23-15:58
 */
@Component
@Service
public class UserServiceImpl implements UserService {
    @Override
    public int getAge(User name) {
        return name.getAge();
    }
}
